<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../baselist.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
</head>

<body>
<form name="icform" method="post" enctype="multipart/form-data">

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
  <div id="navMenubar">
<ul>
</ul>
  </div>
</div>
</div>
</div>

<div class="textbox" id="centerTextbox">
  <div class="textbox-header">
  <div class="textbox-inner-header">
  <div class="textbox-title">
    部署管理
  </div> 
  </div>
  </div>
  
<div>


<div style="padding:10px;text-align:left;">
	部署名称：<input type="text" name="name"/>&nbsp;&nbsp;&nbsp;
	文件上传：<input type="file" name="zipFile"/>&nbsp;&nbsp;
	<input type="button" name="btnUpload" value="保存" onclick="formSubmit('deploy.action','_self');">
</div>

   
<table width="98%">
<tr>
	<td>
<div class="textbox" id="centerTextbox">
  <div class="textbox-header">
  <div class="textbox-inner-header">
  <div class="textbox-title">
    工作流部署列表
  </div> 
  </div>
  </div>
  
<div>


<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<thead>
	<tr>
		<td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
		<td class="tableHeader">序号</td>
		<td class="tableHeader">流程名称</td>
		<td class="tableHeader">部署时间</td>
		<td class="tableHeader">操作</td>
	</tr>
	</thead>
	<tbody class="tableBody" >
	
	<c:forEach items="${deployList}" var="o" varStatus="status">
	<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
		<td><input type="checkbox" name="id" value="${o.id}"/></td>
		<td>${status.index+1}</td>
		<td>${o.name}</td>
		<td><fmt:formatDate value="${o.deploymentTime}" pattern="yyyy-MM-dd"/></td>
		<td>
			<a href="${ctx}/qingjia/workflow/delete.action?id=${o.id}"><font color="blue">[删除]</font></a>
		</td>
	</tr>
	</c:forEach>
	
	</tbody>
</table>
</div>
 
</div>
	</td>
	<td>
<div class="textbox" id="centerTextbox">
  <div class="textbox-header">
  <div class="textbox-inner-header">
  <div class="textbox-title">
    流程定义信息列表
  </div> 
  </div>
  </div>
  
<div>



<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<thead>
	<tr>
		<td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
		<td class="tableHeader">序号</td>
		<td class="tableHeader">定义编号</td>
		<td class="tableHeader">定义名称</td>
		<td class="tableHeader">KEY</td>
		<td class="tableHeader">版本</td>
		<td class="tableHeader">定义文件名称</td>
		<td class="tableHeader">图片名称</td>
		<td class="tableHeader">操作</td>
	</tr>
	</thead>
	<tbody class="tableBody" >
	
	<c:forEach items="${pdList}" var="o" varStatus="status">
	<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
		<td><input type="checkbox" name="id" value="${o.id}"/></td>
		<td>${status.index+1}</td>
		<td>${o.id}</td>
		<td>${o.name}</td>
		<td>${o.key}</td>
		<td>${o.version}</td>
		<td>${o.resourceName}</td>
		<td>${o.diagramResourceName}</td>
		<td>
			<a href="viewImage.action?deploymentId=${o.deploymentId}&imageName=${o.diagramResourceName}" target="_blank"><font color="blue">[查看流程图]</font></a>
		</td>
	</tr>
	</c:forEach>
	
	</tbody>
</table>
</div>
 
</div>
	</td>
</tr>
</table>
 
 
</form>
</body>
</html>

